import Vue from "vue";
import Vuex from "vuex";
import mutations from "./mutations";
import actions from "./action";
Vue.use(Vuex);

const state = {
  username: "", //保存用户名
  cartCount: 0, //保存购物车数量
};

export default new Vuex.Store({
  state,
  mutations,
  actions,
});
